<?



switch (addslashes($_REQUEST['frame'])){



	case "product_category" : include("module/product_category.php");break;



	case "product"          : include("module/product.php");break;



	case "product_detail"   : include("module/product_detail.php");break;


	
	



	//------------ Single page -------------------------------------------------------------------------------



	case "intro"            : include("module/single_intro.php");break;

	case "train"            : include("module/train.php");break;				

	case "encourage"        : include("module/single.php");break;



	case "service"          : include("module/single.php");break;



	case "solution"         : include("module/single.php");break;



	case "partner"          : include("module/single.php");break;



	case "contact"          : include("module/contact.php");break;



	case "friend"           : include("module/friend.php");break;
	
	case "news"      : 
		if (isset($_GET['id']))
			include("module/news_detail.php");
		else
			include("module/news.php");
		break;

	case "students": 
		if (isset($_GET['kid']))
			include("module/kglt_detail.php");
		else
			include("module/students.php");
		break;
		
	case "cc": 
		if (isset($_GET['id']))
			include("module/news_detail.php");
		else
			include("module/chungchi.php");
		break;
	
	case "reg": include("module/reg.php"); break;
	
	case "train_inf": include("module/train_inf.php"); break;
	
	case "lib": include("module/lib.php"); break;
	
	//------------ Multi page -------------------------------------------------------------------------------



	case "recruit_detail"   : include("module/recruit_detail.php");break;

	case "news_detail"      : include("module/news_detail.php");break;
	



	case "cart"             : include("module/cart.php");break;



	case "finish"           : include("module/finish.php");break;

	case "linkdemo"         : include("module/linkdemo.php");break;

	case "checkout"         : include("module/checkout.php");break;



	



	case "search"           : include("module/search.php");break;



	case "registry"         : include("module/member_registry.php");break;



	case "login"            : include("module/member_login.php");break;



	case "forgotpass"       : include("module/member_forgotpass.php");break;



	case "download" :



		if(!empty($_SESSION['member']))



			{



					 include("module/download.php");



			}



		else



			{



		            include("module/member_login.php");



			}



		break;



	



	case "logout"           : 



		unset($_SESSION['member']);



		echo "<script>window.location='./?frame=login'</script>";



		break;



	case "forum"            : echo "<script>window.location='forum'</script>";break;



	



	



	case "home"             : include("module/home.php");break;



	default                 : include("module/home.php");break;







}



?>